package com.zhuangjie.coupon.controller;

import com.zhaungjie.base.conduit.R;
import com.zhuangjie.coupon.service.CouponProductService;
import com.zhuangjie.security.annotations.NoAuthentication;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhuangjie
 * @since 2024-02-28
 */
@RestController
@RequestMapping("/coupon-product")
public class CouponProductController {
    @Autowired
    private CouponProductService couponProductService;
    @ApiOperation("平台省钱包产品列表")
    @NoAuthentication
    @GetMapping("/platform-provincial-wallet")
    public R platformProvincialWallet(){
        return R.require(couponProductService.queryPlatformProvincialWallet());
    }

}
